import axios from "axios";
//设置请求基准路径
const Serve = axios.create({
    baseURL:'http://localhost:3000',
    timeout:'5000'
});
//请求头
Serve.interceptors.request.use(config=>{
    console.log('请求头')
    return config
});

Serve.interceptors.response.use(config=>{
    console.log('响应头')
    return config
},function (err) {
        return Promise.reject(err)
    }
)

export default Serve